import $request from '../request.js'
export default {
	user_agreement(data) {//查询用户协议
		return $request({
			method: 'post',
			url: '/api/app/user_agreement',
			data
		})
	},
	send_email_code(data) {//：APP-发送邮箱验证码-注册
		return $request({
			method: 'post',
			url: '/api/app/send_email_code',
			data
		})
	},
	send_phone_code(data) {//：APP-发送手机验证码
		return $request({
			method: 'post',
			url: '/api/app/send_phone_code',
			data
		})
	},
	register(data) {//注册
		return $request({
			method: 'post',
			url: '/api/app/register',
			data
		})
	},
	registerPhone(data) {//注册
		return $request({
			method: 'post',
			url: '/api/app/registerPhone',
			data
		})
	},
	phoneIsOpen(data) {//是否开启手机号注册
		return $request({
			method: 'post',
			url: '/api/app/phone/is_open',
			data
		})
	},
	reset_pwd_email(data) {//重置密码邮箱
		return $request({
			method: 'post',
			url: '/api/app/reset_pwd_email',
			data
		})
	},
	reset_pwd_phone(data) {//重置密码手机号
		return $request({
			method: 'post',
			url: '/api/app/reset_pwd_phone',
			data
		})
	},
	reset_pwd_email_confirm_code(data) {//验证邮箱验证码是否正确
		return $request({
			method: 'post',
			url: '/api/app/reset_pwd_email_confirm_code',
			data
		})
	},
	reset_pwd_phone_confirm_code(data) {//验证手机验证码是否正确
		return $request({
			method: 'post',
			url: '/api/app/reset_pwd_phone_confirm_code',
			data
		})
	},
	update_user_settings(data) {//实名认证
		return $request({
			method: 'post',
			url: '/api/app/user/update_user_settings',
			data
		})
	},
	logout(data) {//退出登录
		return $request({
			method: 'post',
			url: '/api/app/logout',
			data
		})
	},
	privacy_agreement(data) {//用户隐私
		return $request({
			method: 'post',
			url: '/api/app/privacy_agreement',
			data
		})
	},
	advList(data) {//用户隐私
		return $request({
			method: 'post',
			url: '/api/app/adv/list',
			data
		})
	},
	advClick(data) {//用户隐私
		return $request({
			method: 'post',
			url: '/api/app/adv/click',
			data
		})
	},
	msgUnreadMsg(data) {//用户隐私
		return $request({
			method: 'post',
			url: '/api/app/msg/un_read_msg',
			data
		})
	},
	getByDictCode(data) {//获取后台设置表
		return $request({
			method: 'post',
			url: '/api/app/common/get_by_dict_code',
			data
		})
	},
	notifyDetail(data) {//获取后台设置表
		return $request({
			method: 'post',
			url: '/api/app/notify/notify_detail',
			data
		})
	},
	updateUserRestriction(data) {//获取后台设置表
		return $request({
			method: 'post',
			url: '/api/app/topic/update_user_restriction',
			data
		})
	},
	

	
}